import React from "react";
import mirror, { Router } from "mirrorx";
import PageRouter from "./router/router";

mirror.defaults({
  historyMode: "hash"
});

function Main() {
  return (
    <Router
      basename="/"
      forcerefresh={!("pushState" in window.history)}
      hashType="hashbang"
    >
      <PageRouter />
    </Router>
  );
}

export default Main;
